package com.tao.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.tao.dto.Dto;
import com.tao.service.TaoRotationService;
import com.tao.util.DtoUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("rotation")
public class TaoController {
    @Reference
    private TaoRotationService taoRotationService;
    @GetMapping("selAll")
    public Dto selAll(){
        return DtoUtils.returnSuccessData(taoRotationService.queryAllByLimit(0,0));
    }
}
